#include "DisplayDirection.h"
#include "WPILib.h"

DisplayDirection::DisplayDirection() {
	// Use requires() here to declare subsystem dependencies
	Requires(direction);
}

// Called just before this Command runs the first time
void DisplayDirection::Initialize() {
	
}

// Called repeatedly when this Command is scheduled to run
void DisplayDirection::Execute() {
	
	if(direction->isDrivingForward())
	{
		SmartDashboard::Log("forward", "Driving direction:");
		direction->setForwardDirection();
	}
	else
	{
		SmartDashboard::Log("reverse", "Driving direction:");
		direction->setReverseDirection();
	}
	
}

// Make this return true when this Command no longer needs to run execute()
bool DisplayDirection::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void DisplayDirection::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void DisplayDirection::Interrupted() {
}
